package com.action;

import com.dao.ITabCompletedhomeimprovementorderDao;
import com.opensymphony.xwork2.ModelDriven;
import com.po.TabCompletedhomeimprovementorder;

public class TabCompletedhomeimprovementorderAction extends BaseAction implements ModelDriven<TabCompletedhomeimprovementorder>{

	TabCompletedhomeimprovementorder form = new TabCompletedhomeimprovementorder();
	public TabCompletedhomeimprovementorder getModel(){
		return form;
	}
	private ITabCompletedhomeimprovementorderDao tabCompletedhomeimprovementorderDao;
	public void setTabCompletedhomeimprovementorderDao(ITabCompletedhomeimprovementorderDao tabCompletedhomeimprovementorderDao){
		this.tabCompletedhomeimprovementorderDao = tabCompletedhomeimprovementorderDao;
	}

	public String findByList(){
		form.setPager_count(tabCompletedhomeimprovementorderDao.findByCount(form));
		form.setTabchiolist(tabCompletedhomeimprovementorderDao.findByList(form));
		return SUCCESS;
	}

	public String deleteObject(){
		tabCompletedhomeimprovementorderDao.deleteObejct(form);
		findByList();
		return SUCCESS;
	}

	public String updateObject(){
		tabCompletedhomeimprovementorderDao.updateObject(form);
		return "update";
	}

	

	

}
